<?php
error_reporting(E_ALL & ~E_NOTICE);

if($tudou=$_POST['tudou']){
	$itemCode= basename($tudou);
	
	$key='1f3918053ff6bc04';
	$api='http://api.tudou.com/v3/gw?method=item.info.get&appKey='.$key.'&format=xml&itemCodes='.$itemCode;
// 	echo $api;//得到一个xml文档，读取并解析之
	
	$source=file_get_contents($api);
	
	$node=substr($source, strpos($source, '<html5Url>'),strpos($source, '</html5Url>'));
	
	echo $node;
}